import time,linecache,sys

try:
	fc=open('inc.conf','r+')
except IOError:
	fc=open('inc.conf','w')
	fc.write('0')
	fc.close()
	fc=open('inc.conf','r+')
	
fr=open('/var/log/lclog2','r')

t1=time.time()

pointer=int(fc.read())
fr.seek(pointer,0)
buf=0
for line in fr.readlines():
	print line
pointer=fr.tell()

fc.seek(0,0)
fc.truncate()
fc.write(str(pointer))

fc.close()
fr.close()

t2=time.time()

print "used %s, result: %s" % (t2-t1,pointer)

